package apps.getters;

import java.sql.Timestamp;

/**
 *
 *
 * Last Modified: Oct 31, 2010<br>
 * Version: 1.0<br>
 * Created: Oct 31, 2010<br>
 * Author: Katie Kuksenok (katie.kuksenok@gmail.com)
 *
 * @author Katie
 */
public class SimplePrintoutGetter extends Getter{
    /**
     * This just prints stuff out. We can copy paste this into Excel and separate data
     * by "|".
     *
     * It prints the url, the timestamp, the length of the raw content (but NOT the
     * content itself - too big!), and an extra column with a * if this is the latest version.
     *
     * @param URL - string representation of url
     * @param scraped - the timestamp gathered
     * @param content - full content
     * @param last - true iff this is the latest version
     */
    @Override
    public void handleResultElement(int ID, String URL, Timestamp scraped, String content, boolean last) {
        System.out.println(ID+"|"+URL+"|"+scraped+"|"+content.length()+(last?"|*":""));
    }
}
